
public abstract class Ident implements YakaConstants {
	
	public static final int VARIABLE = 0;
	public static final int CONSTANTE = 1;
	public static final int FONCTION = 2;
	public static final int PARAMETRE_FONCTION = 3;
	
	protected int type;
	
	public Ident(int type) {
		this.type = type;
	}
	
	public int getType() {
		return type;
	}
	
	public abstract int getNature();
	
	public static String typeToString(int type) {
		switch (type) {
			case TYPE_BOOLEEN:
				return "BOOLEEN";
			case TYPE_ENTIER:
				return "ENTIER";
			case TYPE_ERREUR:
				return "ERREUR";
			default:
				return "INCONNU";
		}
	}
}
